<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;
use Storage;

class Swiper extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
       //  //$this->picture = Storage::url($this->picture);
       //  return parent::toArray($request);
       //  //$this->picture = Storage::url($this->picture);
       // // return $this->collection;
        return [
            'picture' => $this->picture_path,
            'link' => $this->link,
        ];
    }
}
